﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace DGIS.Map.Converts
{
    public class DateConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            DateTime date =System.Convert.ToDateTime(value);
            return string.Format("{0}年{1}月{2}日 {3}:{4}",date.Year,date.Month,date.Day,date.Hour,date.Minute);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
